package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperBasEvent implements Serializable {
    private Integer id;

    /**
     * 事件名称
     */
    private String eventName;

    /**
     * 事件类型(0--一般事情；1--价格申请）
     */
    private Integer type;

    /**
     * 客户ID
     */
    private Integer cId;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 事件内容
     */
    private String eventContent;

    /**
     * 入库时间
     */
    private Date indate;

    /**
     * 审核意见
     */
    private String auditContent;

    /**
     * 审核时间
     */
    private Date auditDate;

    /**
     * 审核者
     */
    private String auditPeople;

    /**
     * 审核状态（0-初始创建状态；1-通过；2-拒绝）
     */
    private Integer flag;

    /**
     * 时间申请人
     */
    private String author;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 事件名称
     */
    public String getEventName() {
        return eventName;
    }

    /**
     * 事件名称
     */
    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    /**
     * 事件类型(0--一般事情；1--价格申请）
     */
    public Integer getType() {
        return type;
    }

    /**
     * 事件类型(0--一般事情；1--价格申请）
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 客户ID
     */
    public Integer getcId() {
        return cId;
    }

    /**
     * 客户ID
     */
    public void setcId(Integer cId) {
        this.cId = cId;
    }

    /**
     * 订单ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * 订单ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 事件内容
     */
    public String getEventContent() {
        return eventContent;
    }

    /**
     * 事件内容
     */
    public void setEventContent(String eventContent) {
        this.eventContent = eventContent;
    }

    /**
     * 入库时间
     */
    public Date getIndate() {
        return indate;
    }

    /**
     * 入库时间
     */
    public void setIndate(Date indate) {
        this.indate = indate;
    }

    /**
     * 审核意见
     */
    public String getAuditContent() {
        return auditContent;
    }

    /**
     * 审核意见
     */
    public void setAuditContent(String auditContent) {
        this.auditContent = auditContent;
    }

    /**
     * 审核时间
     */
    public Date getAuditDate() {
        return auditDate;
    }

    /**
     * 审核时间
     */
    public void setAuditDate(Date auditDate) {
        this.auditDate = auditDate;
    }

    /**
     * 审核者
     */
    public String getAuditPeople() {
        return auditPeople;
    }

    /**
     * 审核者
     */
    public void setAuditPeople(String auditPeople) {
        this.auditPeople = auditPeople;
    }

    /**
     * 审核状态（0-初始创建状态；1-通过；2-拒绝）
     */
    public Integer getFlag() {
        return flag;
    }

    /**
     * 审核状态（0-初始创建状态；1-通过；2-拒绝）
     */
    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    /**
     * 时间申请人
     */
    public String getAuthor() {
        return author;
    }

    /**
     * 时间申请人
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", eventName=").append(eventName);
        sb.append(", type=").append(type);
        sb.append(", cId=").append(cId);
        sb.append(", orderId=").append(orderId);
        sb.append(", eventContent=").append(eventContent);
        sb.append(", indate=").append(indate);
        sb.append(", auditContent=").append(auditContent);
        sb.append(", auditDate=").append(auditDate);
        sb.append(", auditPeople=").append(auditPeople);
        sb.append(", flag=").append(flag);
        sb.append(", author=").append(author);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperBasEvent other = (SuperBasEvent) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEventName() == null ? other.getEventName() == null : this.getEventName().equals(other.getEventName()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getcId() == null ? other.getcId() == null : this.getcId().equals(other.getcId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getEventContent() == null ? other.getEventContent() == null : this.getEventContent().equals(other.getEventContent()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getAuditContent() == null ? other.getAuditContent() == null : this.getAuditContent().equals(other.getAuditContent()))
            && (this.getAuditDate() == null ? other.getAuditDate() == null : this.getAuditDate().equals(other.getAuditDate()))
            && (this.getAuditPeople() == null ? other.getAuditPeople() == null : this.getAuditPeople().equals(other.getAuditPeople()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEventName() == null) ? 0 : getEventName().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getcId() == null) ? 0 : getcId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getEventContent() == null) ? 0 : getEventContent().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getAuditContent() == null) ? 0 : getAuditContent().hashCode());
        result = prime * result + ((getAuditDate() == null) ? 0 : getAuditDate().hashCode());
        result = prime * result + ((getAuditPeople() == null) ? 0 : getAuditPeople().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());
        return result;
    }
}